<?php
/**
 * @author all@cosmos-framework.org
 * @copyright (c) 2013 cosmos-framework.org
 * @license http://www.opensource.org/licenses/mit-license.php
 * @link http://cosmos-framework.org/
 * @package cosmos.framework
 * @version 2.0
 */
namespace Cosmos;

trait Factory {

    /**
     * @return mixed
     */
    public static function & this() {

        static $_;
        return $_ ? : $_ = new Component(__CLASS__, func_get_args());
    }

}
